package cn.sofwin.web.blog.entity;

import cn.sofwin.core.entity.IdEntity;

import java.util.Date;

/**
 * 文章评论实体类
 * @author ZX
 * @version 1.0
 */
public class ArticleComment extends IdEntity {

    private User user;

    private Article article;

    private String content;

    private Date addTime;

    private Integer status;

    public ArticleComment() {
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Article getArticle() {
        return article;
    }

    public void setArticle(Article article) {
        this.article = article;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "ArticleComment{" +
                "user=" + user +
                ", article=" + article +
                ", content='" + content + '\'' +
                ", addTime=" + addTime +
                ", status=" + status +
                ", id=" + id +
                '}';
    }
}
